You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > SetVal Method > TOpenCLMtxVec.SetVal Method ([In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLMtxVec.SetVal Method ([In] double)

Initialize elements to Value.

Syntax
C#
Visual Basic
public TOpenCLMtxVec SetVal([In] double Value);

Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLVector a; clMtxVec.CreateIt(out a); try { a.Size(false, clFloat, 4); a.SetVal(1); } finally { clMtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!